how to find local minimum maximum values

join shbcf.ru